/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package biz;

import dao.BranchDAO;
import entity.Branch;
import java.sql.SQLException;
import java.util.ArrayList;

/**
 *
 * @author Young Ran
 */
public class BranchBO {
    
    //DISPLAY BRANCH:
    public ArrayList<Branch> getAllBranch() throws SQLException {
        return new BranchDAO().getAllBranch();
    }
        public void addBranch(Branch item) throws SQLException
    {
        new BranchDAO().addBranch(item);
    }
    public void editBranch(Branch item) throws SQLException{
        new BranchDAO().editBranch(item);
    }
    public void deleteBranch(int id) throws SQLException{
        new BranchDAO().deleteBranch(id);
    }
}
